package reviews.task3;


public class UserPoorScore implements Comparable<UserPoorScore> {

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 差评总次数
     */
    private Integer scoreValueNum;

    public UserPoorScore() {
    }

    public UserPoorScore(String userId, Integer scoreValueNum) {
        this.userId = userId;
        this.scoreValueNum = scoreValueNum;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getScoreValueNum() {
        return scoreValueNum;
    }

    public void setScoreValueNum(Integer scoreValueNum) {
        this.scoreValueNum = scoreValueNum;
    }

    @Override
    public int compareTo(UserPoorScore o) {
        return o.getScoreValueNum().compareTo(this.getScoreValueNum());
    }
}
